import request from '@/utils/request'

// 查询设备插件列表
export function listPlugin(query) {
    return request({
        url: '/equipment/plugin/list',
        method: 'get',
        params: query
    })
}
// 插件列表options
export function getOptionsPlugin() {
    return request({
        url: '/equipment/plugin/optionselect',
        method: 'get'
    })
}
// 查询设备插件详细
export function getPlugin(equipmentPluginId) {
    return request({
        url: '/equipment/plugin/' + equipmentPluginId,
        method: 'get'
    })
}

// 新增设备插件
export function addPlugin(data) {
    return request({
        url: '/equipment/plugin',
        method: 'post',
        data: data
    })
}

// 修改设备插件
export function updatePlugin(data) {
    return request({
        url: '/equipment/plugin',
        method: 'put',
        data: data
    })
}

// 删除设备插件
export function delPlugin(equipmentPluginId) {
    return request({
        url: '/equipment/plugin/' + equipmentPluginId,
        method: 'delete'
    })
}
